<?php
$loader->requireOnce('includes/CoreErrorCode.class.php');
/**
 * Exception of inpatient core.
 * @package core.includes.inPatientCore
 * @author viethd
 * @version $Id$
 * @copyright 2009 LHV Company
 */
class CoreException extends Exception {
	protected $errCode;
    function __construct($message, $errCode) {
        parent::__construct("[" . $errCode . "]. " . $message);
        $this->errCode = $errCode;

    }
    public function getErrorCode() {
    	return $this->errCode;
    }

}


?>